package com.fifth.permission.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fifth.common.pojo.entity.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @作者：刘壬杉
 * @创建时间 2022/8/31 11:51
 **/
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    /*根据empid查询对应权限(后端调用)*/
    List<String> findByEmpid(String empid);

    /*根据empid查询对应权限全部信息(前端调用)*/
    List<Permission> findAllByEmpid(String empid);
}
